const Mock = require('mockjs');

const banner = Mock.mock({
    "list|5": ["@image(375x200, @color)"]
})

const cart = Mock.mock({
    "list|10": [
        {
            "title": "@cname",
            "cardList|1-4": [
                {
                    "img": "@image(375x150,@color)",
                    "name": "@ctitle(4)",
                    "price|10-100": 50,
                    "id": "@id", 
                    "count": 0
                }
            ],
            "goods|6-10": [
                {
                    "img": "@image(150x150)",
                    "name": "@ctitle(4)",
                    "price|10-100": 50,
                    "id": "@id", 
                    "count": 0
                }
            ]   
        }
    ]
})

module.exports = {
    banner: banner.list,
    cart: cart.list
}